class Person:
    # 身高
    # 体重
    # 姓名
    # 年龄
    def __init__(self, height, weight, name, age):
        self.height = height
        self.weight = weight
        self.name = name
        self.age = age

    # def 打工赚钱


zhangsan = Person(100, 100, "张三", 12)


class Anima:
    def __init__(self, name, age):
        self.name = name
        self.age = age


a = Anima("泰迪", 2)


class Fruit:
    def __init__(self, name):
        self.name = name


# p = Person(100, 100, )

class first:
    def __init__(self):
        pass


class Word:
    pass

    # abcdefg


# class words:
#     def __init__(self,name):
#         self.name = name
#     def 打印字母
#
# class 动物:
#     def 打印字母 属于类的函数

# 函数是一个具有独立功能的代码块
def p_print(name):
    print(name)

    # def a(self):
    #     print("a")
    # def b(self):
    #     print("b")


class words:
    def __init__(self, name):
        self.name = name

    def p_pring(self):
        print(self.name)


word = words('a')

# if __name__ == '__main__':
# word.p_print("a")

import pymongo


class MongoClient:
    def __init__(self, url):
        self.url = url


# client = MongoClient("mongodb://127.0.0.1:27107/admin")


client = {
    "admin": {},
    "config": {},
    "db_itheima": {},
    "itheima": {},
    "local": {},
}

client["itheima"]["good"]
